Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-rule-documentation

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-rule-documentation

Find the url for the documentation of an ESLint rule

  • 1.0.23
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
116K
increased by6.74%
Maintainers
2
Weekly downloads
 
Created

What is eslint-rule-documentation?

The eslint-rule-documentation npm package provides a way to get documentation URLs for ESLint rules. This can be useful for integrating with tools that display ESLint rule information or for generating documentation.

What are eslint-rule-documentation's main functionalities?

Get Documentation URL for a Rule

This feature allows you to get the documentation URL for a specific ESLint rule. The code sample demonstrates how to get the URL for the 'no-unused-vars' rule.

const ruleDocumentation = require('eslint-rule-documentation');
const result = ruleDocumentation('no-unused-vars');
console.log(result.url); // Outputs: 'https://eslint.org/docs/rules/no-unused-vars'

Get Documentation URL with Custom Rules

This feature allows you to provide custom rules with their documentation URLs. The code sample demonstrates how to get the URL for a custom rule 'my-custom-rule'.

const ruleDocumentation = require('eslint-rule-documentation');
const customRules = {
  'my-custom-rule': 'https://example.com/docs/my-custom-rule'
};
const result = ruleDocumentation('my-custom-rule', customRules);
console.log(result.url); // Outputs: 'https://example.com/docs/my-custom-rule'

Other packages similar to eslint-rule-documentation

Keywords

FAQs

Package last updated on 12 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc